'''
Created on Dec 21, 2010

@author: hugosenari
'''
import unittest
import mockito
from pyhildonmemer.services import ServicesList

class Test(unittest.TestCase):


    def setUp(self):
        pass


    def tearDown(self):
        pass


    def testAddService(self):
        mockService = mockito.mock()
        mockServiceName = "pythildonmemer.tests.services.MockService"
        mockito.when(mockService).getServiceId().thenReturn(mockServiceName)
        ServicesList.add(service)
        serviceResponse = ServicesList.getService(mockServiceName)
        self.assertEqual(mockService, serviceResponse)


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()